#define _CRT_SECURE_NO_WARNINGS 1
//用函数实现判断闰年
#include<stdio.h>
is_leap_year(int year)
{
	if (((0 == year % 4) && (0 != year % 100)) || (0 == year % 400))
		return 1;
	else
		return 0;
}

int main()
{
	int year = 0;
	scanf("%d", &year);
	int ret = is_leap_year(year);
	if (ret)
	{
		printf("%d是闰年\n", year);
	}
	else
	{
		printf("%d不是闰年\n", year);
	}
	return 0;
}